﻿namespace SS.WPF.Framework.ViewModel
{
    /// <summary>
    /// The interface is used to present an editable component
    /// </summary>
    public interface IEditable
    {
        /// <summary>
        /// Editing status
        /// </summary>
        EditingStatus EditingStatus { get; }

        /// <summary>
        /// Determines whether editing is error
        /// </summary>
        bool HasError { get; set; }

        /// <summary>
        /// Determines whether content of editor has been changed comparing with the original
        /// </summary>
        bool IsEditorDirty { get; set; }
    }
}